package com.whopxx.controller;

import com.whopxx.biz.RecommendBizService;
import com.whopxx.domain.dto.RecommendAddDTO;
import com.whopxx.domain.vo.ResultVO;
import jakarta.annotation.Resource;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/recommend")
public class RecommendController {
    @Resource
    private RecommendBizService recommendBizService;

    @PostMapping("/add")
    public ResultVO<Boolean> add(@RequestBody @Validated RecommendAddDTO dto){
        Boolean success = recommendBizService.add(dto);
        return ResultVO.success(success);
    }


}
